<template>
  <div class="promotion">
    <div class="guest-content">
      <div class="guest-title">
        <div class="title1">最新活动</div>
        <div class="title2">圣诺莉精彩活动</div>
      </div>
      <div>
        <promotionItem
          style="width: 100%"
          :style="{ background: index % 2 == 0 ? ' #f0eee4' : '' }"
          class="promotionItem"
          v-for="(item, index) in tabList"
          :detail="item"
          :key="index"
        ></promotionItem>
      </div>
    </div>
  </div>
</template>
<script>
import promotionItem from "@/components/promotion/promotionItem.vue";
import imgUrl1 from "@img/promotion/圣诺莉官网—首页_02-05.png";
import imgUrl2 from "@img/promotion/圣诺莉官网—首页_02-16.png";
import imgUrl3 from "@img/promotion/圣诺莉官网—首页_02-18.png";
import imgUrl4 from "@img/promotion/圣诺莉官网—首页_02-20.png";
import imgUrl5 from "@img/promotion/圣诺莉官网—首页_02-23.png";

export default {
  data() {
    return {
      tabList: [
        {
          title: "宫殿古堡",
          num: 100,
          height: 10,
          imgUrl: imgUrl1,
        },
        {
          title: "海洋之谜",
          num: 100,
          height: 10,
          imgUrl: imgUrl2,
        },
        {
          title: "杜乐丽花园",
          num: 100,
          height: 10,
          imgUrl: imgUrl3,
        },
        {
          title: "暮光森林",
          num: 100,
          height: 10,
          imgUrl: imgUrl4,
        },
        {
          title: "云中长安",
          num: 100,
          height: 10,
          imgUrl: imgUrl5,
        },
      ],
    };
  },
  components: { promotionItem },
  mounted() {},
  computed: {},
  methods: {},
};
</script>
<style scoped lang="less">
@import url("@css/index");
.promotionItem {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20%;
  box-sizing: border-box;
}
.promotion {
  display: flex;
  align-items: center;
  padding-bottom: 150px;
  max-width: 1920px;
  min-width: 1024px;
  .guest-content {
    height: 100%;
    width: 100%;
    .guest-title {
      display: flex;
      align-items: baseline;
      padding-left: 20px;
      margin: 20px 0;
      font-weight: 400;
      font-size: 20px;
      font-family: SourceHanSansSC;
      .title1 {
        font-weight: 500;
        font-size: 36px;
        color: #000000;
        margin-right: 13px;
      }
    }
    .guest-video {
      width: 100%;
      height: 490px;
      margin-bottom: 20px;

      box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    }
  }
}
</style>
